package org.example.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ConcernMapper {

    @Insert("insert into friend_relation ( user_id, friend_id) values (#{userId},#{FriendId})")
    void InsertConcern(String userId, String FriendId);

    @Delete("delete from  friend_relation  where user_id=#{currentUserId} and friend_id=#{targetUserId}")
    void deleteBycurrentUserId(String currentUserId, String targetUserId);
}
